// source --> https://swyper.ru/wp-content/plugins/yop-poll/public/assets/js/yop-poll-public.min.js?ver=4.8.2 function gMakeSheet(t){var e=document.createElement("style");return null!=t&&e.setAttribute("media",t),e.appendChild(document.createTextNode("")),document.head.appendChild(e),e.sheet}function gAddStyleToSheet(t,e,a,i){for(var n in"all"===t||null===t?t=[sheet,smSheet,mdSheet,lgSheet]:void 0!==t.cssRules&&(t=[t]),t)"object"==typeof t[n]&&"text/css"===t[n].type&&(t[n].insertRule?t[n].insertRule(e+"{"+a+"}",i):t[n].addRule(e,a,i))}!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).Chart=t()}}(function(){return function o(r,s,l){function d(a,t){if(!s[a]){if(!r[a]){var e="function"==typeof require&&require;if(!t&&e)return e(a,!0);if(c)return c(a,!0);var i=new Error("Cannot find module '"+a+"'");throw i.code="MODULE_NOT_FOUND",i}var n=s[a]={exports:{}};r[a][0].call(n.exports,function(t){var e=r[a][1][t];return d(e||t)},n,n.exports,o,r,s,l)}return s[a].exports}for(var c="function"==typeof require&&require,t=0;t');var a=t.data,i=a.datasets,n=a.labels;if(i.length)for(var o=0;o'),n[o]&&e.push(n[o]),e.push("");return e.push(""),e.join("")},legend:{labels:{generateLabels:function(l){var d=l.data;return d.labels.length&&d.datasets.length?d.labels.map(function(t,e){var a=l.getDatasetMeta(0),i=d.datasets[0],n=a.data[e],o=n&&n.custom||{},r=I.valueAtIndexOrDefault,s=l.options.elements.arc;return{text:t,fillStyle:o.backgroundColor?o.backgroundColor:r(i.backgroundColor,e,s.backgroundColor),strokeStyle:o.borderColor?o.borderColor:r(i.borderColor,e,s.borderColor),lineWidth:o.borderWidth?o.borderWidth:r(i.borderWidth,e,s.borderWidth),hidden:isNaN(i.data[e])||a.data[e].hidden,index:e}}):[]}},onClick:function(t,e){var a,i,n,o=e.index,r=this.chart;for(a=0,i=(r.data.datasets||[]).length;a=Math.PI?-1:f<-Math.PI?1:0))+h,g=Math.cos(f),m=Math.sin(f),v=Math.cos(p),b=Math.sin(p),y=f<=0&&0<=p||f<=2*Math.PI&&2*Math.PI<=p,x=f<=.5*Math.PI&&.5*Math.PI<=p||f<=2.5*Math.PI&&2.5*Math.PI<=p,w=f<=-Math.PI&&-Math.PI<=p||f<=Math.PI&&Math.PI<=p,S=f<=.5*-Math.PI&&.5*-Math.PI<=p||f<=1.5*Math.PI&&1.5*Math.PI<=p,C=u/100,k=w?-1:Math.min(g*(g<0?1:C),v*(v<0?1:C)),M=S?-1:Math.min(m*(m<0?1:C),b*(b<0?1:C)),T=y?1:Math.max(g*(0');var a=t.data,i=a.datasets,n=a.labels;if(i.length)for(var o=0;o'),n[o]&&e.push(n[o]),e.push("");return e.push(""),e.join("")},legend:{labels:{generateLabels:function(s){var l=s.data;return l.labels.length&&l.datasets.length?l.labels.map(function(t,e){var a=s.getDatasetMeta(0),i=l.datasets[0],n=a.data[e].custom||{},o=w.valueAtIndexOrDefault,r=s.options.elements.arc;return{text:t,fillStyle:n.backgroundColor?n.backgroundColor:o(i.backgroundColor,e,r.backgroundColor),strokeStyle:n.borderColor?n.borderColor:o(i.borderColor,e,r.borderColor),lineWidth:n.borderWidth?n.borderWidth:o(i.borderWidth,e,r.borderWidth),hidden:isNaN(i.data[e])||a.data[e].hidden,index:e}}):[]}},onClick:function(t,e){var a,i,n,o=e.index,r=this.chart;for(a=0,i=(r.data.datasets||[]).length;a=e.numSteps?(o.callback(e.onAnimationComplete,[e],a),a.animating=!1,i.splice(n,1)):++n}},Object.defineProperty(t.Animation.prototype,"animationObject",{get:function(){return this}}),Object.defineProperty(t.Animation.prototype,"chartInstance",{get:function(){return this.chart},set:function(t){this.chart=t}})}},{25:25,26:26,45:45}],23:[function(t,e,a){"use strict";var c=t(25),u=t(45),n=t(28),h=t(48);e.exports=function(d){var l=d.plugins;function s(t){return"top"===t||"bottom"===t}d.types={},d.instances={},d.controllers={},u.extend(d.prototype,{construct:function(t,e){var a,i,n=this;(i=(a=(a=e)||{}).data=a.data||{}).datasets=i.datasets||[],i.labels=i.labels||[],a.options=u.configMerge(c.global,c[a.type],a.options||{}),e=a;var o=h.acquireContext(t,e),r=o&&o.canvas,s=r&&r.height,l=r&&r.width;n.id=u.uid(),n.ctx=o,n.canvas=r,n.config=e,n.width=l,n.height=s,n.aspectRatio=s?l/s:null,n.options=e.options,n._bufferedRender=!1,(n.chart=n).controller=n,d.instances[n.id]=n,Object.defineProperty(n,"data",{get:function(){return n.config.data},set:function(t){n.config.data=t}}),o&&r?(n.initialize(),n.update()):console.error("Failed to create chart: can't acquire context from the given item")},initialize:function(){var t=this;return l.notify(t,"beforeInit"),u.retinaScale(t,t.options.devicePixelRatio),t.bindEvents(),t.options.responsive&&t.resize(!0),t.ensureScalesHaveIDs(),t.buildScales(),t.initToolTip(),l.notify(t,"afterInit"),t},clear:function(){return u.canvas.clear(this),this},stop:function(){return d.animationService.cancelAnimation(this),this},resize:function(t){var e=this,a=e.options,i=e.canvas,n=a.maintainAspectRatio&&e.aspectRatio||null,o=Math.max(0,Math.floor(u.getMaximumWidth(i))),r=Math.max(0,Math.floor(n?o/n:u.getMaximumHeight(i)));if((e.width!==o||e.height!==r)&&(i.width=e.width=o,i.height=e.height=r,i.style.width=o+"px",i.style.height=r+"px",u.retinaScale(e,a.devicePixelRatio),!t)){var s={width:o,height:r};l.notify(e,"resize",[s]),e.options.onResize&&e.options.onResize(e,s),e.stop(),e.update(e.options.responsiveAnimationDuration)}},ensureScalesHaveIDs:function(){var t=this.options,e=t.scales||{},a=t.scale;u.each(e.xAxes,function(t,e){t.id=t.id||"x-axis-"+e}),u.each(e.yAxes,function(t,e){t.id=t.id||"y-axis-"+e}),a&&(a.id=a.id||"scale")},buildScales:function(){var o=this,t=o.options,r=o.scales={},e=[];t.scales&&(e=e.concat((t.scales.xAxes||[]).map(function(t){return{options:t,dtype:"category",dposition:"bottom"}}),(t.scales.yAxes||[]).map(function(t){return{options:t,dtype:"linear",dposition:"left"}}))),t.scale&&e.push({options:t.scale,dtype:"radialLinear",isDefault:!0,dposition:"chartArea"}),u.each(e,function(t){var e=t.options,a=u.valueOrDefault(e.type,t.dtype),i=d.scaleService.getScaleConstructor(a);if(i){s(e.position)!==s(t.dposition)&&(e.position=t.dposition);var n=new i({id:e.id,options:e,ctx:o.ctx,chart:o});(r[n.id]=n).mergeTicksOptions(),t.isDefault&&(o.scale=n)}}),d.scaleService.addScalesToLayout(this)},buildOrUpdateControllers:function(){var o=this,r=[],s=[];return u.each(o.data.datasets,function(t,e){var a=o.getDatasetMeta(e),i=t.type||o.config.type;if(a.type&&a.type!==i&&(o.destroyDatasetMeta(e),a=o.getDatasetMeta(e)),a.type=i,r.push(a.type),a.controller)a.controller.updateIndex(e);else{var n=d.controllers[a.type];if(void 0===n)throw new Error('"'+a.type+'" is not a chart type.');a.controller=new n(o,e),s.push(a.controller)}},o),s},resetElements:function(){var a=this;u.each(a.data.datasets,function(t,e){a.getDatasetMeta(e).controller.reset()},a)},reset:function(){this.resetElements(),this.tooltip.initialize()},update:function(t){var e,a,i=this;if(t&&"object"==typeof t||(t={duration:t,lazy:arguments[1]}),(a=(e=i).options).scale?e.scale.options=a.scale:a.scales&&a.scales.xAxes.concat(a.scales.yAxes).forEach(function(t){e.scales[t.id].options=t}),e.tooltip._options=a.tooltips,!1!==l.notify(i,"beforeUpdate")){i.tooltip._data=i.data;var n=i.buildOrUpdateControllers();u.each(i.data.datasets,function(t,e){i.getDatasetMeta(e).controller.buildOrUpdateElements()},i),i.updateLayout(),u.each(n,function(t){t.reset()}),i.updateDatasets(),i.tooltip.initialize(),i.lastActive=[],l.notify(i,"afterUpdate"),i._bufferedRender?i._bufferedRequest={duration:t.duration,easing:t.easing,lazy:t.lazy}:i.render(t)}},updateLayout:function(){!1!==l.notify(this,"beforeLayout")&&(d.layoutService.update(this,this.width,this.height),l.notify(this,"afterScaleUpdate"),l.notify(this,"afterLayout"))},updateDatasets:function(){if(!1!==l.notify(this,"beforeDatasetsUpdate")){for(var t=0,e=this.data.datasets.length;t=e[t].length&&e[t].push({}),!e[t][n].type||r.type&&r.type!==e[t][n].type?p.merge(e[t][n],[l.scaleService.getScaleDefaults(o),r]):p.merge(e[t][n],r)}else p._merger(t,e,a,i)}})},p.where=function(t,e){if(p.isArray(t)&&Array.prototype.filter)return t.filter(e);var a=[];return p.each(t,function(t){e(t)&&a.push(t)}),a},p.findIndex=Array.prototype.findIndex?function(t,e,a){return t.findIndex(e,a)}:function(t,e,a){a=void 0===a?t:a;for(var i=0,n=t.length;i=t.length-1?t[0]:t[e+1]:e>=t.length-1?t[t.length-1]:t[e+1]},p.previousItem=function(t,e,a){return a?e<=0?t[t.length-1]:t[e-1]:e<=0?t[0]:t[e-1]},p.niceNum=function(t,e){var a=Math.floor(p.log10(t)),i=t/Math.pow(10,a);return(e?i<1.5?1:i<3?2:i<7?5:10:i<=1?1:i<=2?2:i<=5?5:10)*Math.pow(10,a)},p.requestAnimFrame="undefined"==typeof window?function(t){t()}:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return window.setTimeout(t,1e3/60)},p.getRelativePosition=function(t,e){var a,i,n=t.originalEvent||t,o=t.currentTarget||t.srcElement,r=o.getBoundingClientRect(),s=n.touches;i=s&&0a.length){for(var l=0;le&&(e=t.length)}),e},p.color=i?function(t){return t instanceof CanvasGradient&&(t=n.global.defaultColor),i(t)}:function(t){return console.error("Color.js not found!"),t},p.getHoverColor=function(t){return t instanceof CanvasPattern?t:p.color(t).saturate(.5).darken(.1).rgbString()}}},{25:25,3:3,45:45}],28:[function(t,e,a){"use strict";var i=t(45);function s(t,e){return t.native?{x:t.x,y:t.y}:i.getRelativePosition(t,e)}function l(t,e){var a,i,n,o,r;for(i=0,o=t.data.datasets.length;it.maxHeight){o--;break}o++,l=r*s}t.labelRotation=o},afterCalculateTickRotation:function(){z.callback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){z.callback(this.options.beforeFit,[this])},fit:function(){var t=this,e=t.minSize={width:0,height:0},a=k(t._ticks),i=t.options,n=i.ticks,o=i.scaleLabel,r=i.gridLines,s=i.display,l=t.isHorizontal(),d=S(n),c=i.gridLines.tickMarkLength;if(e.width=l?t.isFullWidth()?t.maxWidth-t.margins.left-t.margins.right:t.maxWidth:s&&r.drawTicks?c:0,e.height=l?s&&r.drawTicks?c:0:t.maxHeight,o.display&&s){var u=C(o)+z.options.toPadding(o.padding).height;l?e.height+=u:e.width+=u}if(n.display&&s){var h=z.longestText(t.ctx,d.font,a,t.longestTextCache),f=z.numberOfLabelLines(a),p=.5*d.size,g=t.options.ticks.padding;if(l){t.longestLabelWidth=h;var m=z.toRadians(t.labelRotation),v=Math.cos(m),b=Math.sin(m)*h+d.size*f+p*(f-1)+p;e.height=Math.min(t.maxHeight,e.height+b+g),t.ctx.font=d.font;var y=w(t.ctx,a[0],d.font),x=w(t.ctx,a[a.length-1],d.font);0!==t.labelRotation?(t.paddingLeft="bottom"===i.position?v*y+3:v*p+3,t.paddingRight="bottom"===i.position?v*p+3:v*x+3):(t.paddingLeft=y/2+3,t.paddingRight=x/2+3)}else n.mirror?h=0:h+=g+p,e.width=Math.min(t.maxWidth,e.width+h),t.paddingTop=d.size/2,t.paddingBottom=d.size/2}t.handleMargins(),t.width=e.width,t.height=e.height},handleMargins:function(){var t=this;t.margins&&(t.paddingLeft=Math.max(t.paddingLeft-t.margins.left,0),t.paddingTop=Math.max(t.paddingTop-t.margins.top,0),t.paddingRight=Math.max(t.paddingRight-t.margins.right,0),t.paddingBottom=Math.max(t.paddingBottom-t.margins.bottom,0))},afterFit:function(){z.callback(this.options.afterFit,[this])},isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(t){if(z.isNullOrUndef(t))return NaN;if("number"==typeof t&&!isFinite(t))return NaN;if(t)if(this.isHorizontal()){if(void 0!==t.x)return this.getRightValue(t.x)}else if(void 0!==t.y)return this.getRightValue(t.y);return t},getLabelForIndex:z.noop,getPixelForValue:z.noop,getValueForPixel:z.noop,getPixelForTick:function(t){var e=this,a=e.options.offset;if(e.isHorizontal()){var i=(e.width-(e.paddingLeft+e.paddingRight))/Math.max(e._ticks.length-(a?0:1),1),n=i*t+e.paddingLeft;a&&(n+=i/2);var o=e.left+Math.round(n);return o+=e.isFullWidth()?e.margins.left:0}var r=e.height-(e.paddingTop+e.paddingBottom);return e.top+t*(r/(e._ticks.length-1))},getPixelForDecimal:function(t){var e=this;if(e.isHorizontal()){var a=(e.width-(e.paddingLeft+e.paddingRight))*t+e.paddingLeft,i=e.left+Math.round(a);return i+=e.isFullWidth()?e.margins.left:0}return e.top+t*e.height},getBasePixel:function(){return this.getPixelForValue(this.getBaseValue())},getBaseValue:function(){var t=this.min,e=this.max;return this.beginAtZero?0:t<0&&e<0?e:0o.width-(o.paddingLeft+o.paddingRight)&&(e=1+Math.floor((u+s.autoSkipPadding)*l/(o.width-(o.paddingLeft+o.paddingRight)))),n&&nl.height-e.height&&(u="bottom");var h=(d.left+d.right)/2,f=(d.top+d.bottom)/2;i="center"===u?(a=function(t){return t<=h},function(t){return h=l.width-e.width/2}),n=function(t){return t+e.width>l.width},o=function(t){return t-e.width<0},r=function(t){return t<=f?"top":"bottom"},a(s.x)?(c="left",n(s.x)&&(c="center",u=r(s.y))):i(s.x)&&(c="right",o(s.x)&&(c="center",u=r(s.y)));var p=t._options;return{xAlign:p.xAlign?p.xAlign:c,yAlign:p.yAlign?p.yAlign:u}}(this,A=function(t,e){var a=t._chart.ctx,i=2*e.yPadding,n=0,o=e.body,r=o.reduce(function(t,e){return t+e.before.length+e.lines.length+e.after.length},0);r+=e.beforeBody.length+e.afterBody.length;var s=e.title.length,l=e.footer.length,d=e.titleFontSize,c=e.bodyFontSize,u=e.footerFontSize;i+=s*d,i+=s?(s-1)*e.titleSpacing:0,i+=s?e.titleMarginBottom:0,i+=r*c,i+=r?(r-1)*e.bodySpacing:0,i+=l?e.footerMarginTop:0,i+=l*u,i+=l?(l-1)*e.footerSpacing:0;var h=0,f=function(t){n=Math.max(n,a.measureText(t).width+h)};return a.font=L.fontString(d,e._titleFontStyle,e._titleFontFamily),L.each(e.title,f),a.font=L.fontString(c,e._bodyFontStyle,e._bodyFontFamily),L.each(e.beforeBody.concat(e.afterBody),f),h=e.displayColors?c+2:0,L.each(o,function(t){L.each(t.before,f),L.each(t.lines,f),L.each(t.after,f)}),h=0,a.font=L.fontString(u,e._footerFontStyle,e._footerFontFamily),L.each(e.footer,f),{width:n+=2*e.xPadding,height:i}}(this,C)),n=A,o=T,r=(i=C).x,s=i.y,l=i.caretSize,d=i.caretPadding,c=i.cornerRadius,u=o.xAlign,h=o.yAlign,f=l+d,p=c+d,"right"===u?r-=n.width:"center"===u&&(r-=n.width/2),"top"===h?s+=f:s-="bottom"===h?n.height+f:n.height/2,"center"===h?"left"===u?r+=f:"right"===u&&(r-=f):"left"===u?r-=p:"right"===u&&(r+=p),P={x:r,y:s}}else C.opacity=0;return C.xAlign=T.xAlign,C.yAlign=T.yAlign,C.x=P.x,C.y=P.y,C.width=A.width,C.height=A.height,C.caretX=_.x,C.caretY=_.y,x._model=C,t&&w.custom&&w.custom.call(x,C),x},drawCaret:function(t,e){var a=this._chart.ctx,i=this._view,n=this.getCaretPosition(t,e,i);a.lineTo(n.x1,n.y1),a.lineTo(n.x2,n.y2),a.lineTo(n.x3,n.y3)},getCaretPosition:function(t,e,a){var i,n,o,r,s,l,d=a.caretSize,c=a.cornerRadius,u=a.xAlign,h=a.yAlign,f=t.x,p=t.y,g=e.width,m=e.height;if("center"===h)s=p+m/2,l="left"===u?(n=(i=f)-d,o=i,r=s+d,s-d):(n=(i=f+g)+d,o=i,r=s-d,s+d);else if(o=(i="left"===u?(n=f+c+d)-d:"right"===u?(n=f+g-c-d)-d:(n=f+g/2)-d,n+d),"top"===h)s=(r=p)-d,l=r;else{s=(r=p+m)+d,l=r;var v=o;o=i,i=v}return{x1:i,x2:n,x3:o,y1:r,y2:s,y3:l}},drawTitle:function(t,e,a,i){var n=e.title;if(n.length){a.textAlign=e._titleAlign,a.textBaseline="top";var o,r,s=e.titleFontSize,l=e.titleSpacing;for(a.fillStyle=h(e.titleFontColor,i),a.font=L.fontString(s,e._titleFontStyle,e._titleFontFamily),o=0,r=n.length;o=a.innerRadius&&o<=a.outerRadius;return l&&d}return!1},getCenterPoint:function(){var t=this._view,e=(t.startAngle+t.endAngle)/2,a=(t.innerRadius+t.outerRadius)/2;return{x:t.x+Math.cos(e)*a,y:t.y+Math.sin(e)*a}},getArea:function(){var t=this._view;return Math.PI*((t.endAngle-t.startAngle)/(2*Math.PI))*(Math.pow(t.outerRadius,2)-Math.pow(t.innerRadius,2))},tooltipPosition:function(){var t=this._view,e=t.startAngle+(t.endAngle-t.startAngle)/2,a=(t.outerRadius-t.innerRadius)/2+t.innerRadius;return{x:t.x+Math.cos(e)*a,y:t.y+Math.sin(e)*a}},draw:function(){var t=this._chart.ctx,e=this._view,a=e.startAngle,i=e.endAngle;t.beginPath(),t.arc(e.x,e.y,e.outerRadius,a,i),t.arc(e.x,e.y,e.innerRadius,i,a,!0),t.closePath(),t.strokeStyle=e.borderColor,t.lineWidth=e.borderWidth,t.fillStyle=e.backgroundColor,t.fill(),t.lineJoin="bevel",e.borderWidth&&t.stroke()}})},{25:25,26:26,45:45}],37:[function(t,e,a){"use strict";var i=t(25),n=t(26),c=t(45),u=i.global;i._set("global",{elements:{line:{tension:.4,backgroundColor:u.defaultColor,borderWidth:3,borderColor:u.defaultColor,borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",capBezierPoints:!0,fill:!0}}}),e.exports=n.extend({draw:function(){var t,e,a,i,n=this._view,o=this._chart.ctx,r=n.spanGaps,s=this._children.slice(),l=u.elements.line,d=-1;for(this._loop&&s.length&&s.push(s[0]),o.save(),o.lineCap=n.borderCapStyle||l.borderCapStyle,o.setLineDash&&o.setLineDash(n.borderDash||l.borderDash),o.lineDashOffset=n.borderDashOffset||l.borderDashOffset,o.lineJoin=n.borderJoinStyle||l.borderJoinStyle,o.lineWidth=n.borderWidth||l.borderWidth,o.strokeStyle=n.borderColor||u.defaultColor,o.beginPath(),d=-1,t=0;t=i.left&&t<=i.right&&e>=i.top&&e<=i.bottom}return a},inLabelRange:function(t,e){if(!this._view)return!1;var a=o(this);return l(this)?t>=a.left&&t<=a.right:e>=a.top&&e<=a.bottom},inXRange:function(t){var e=o(this);return t>=e.left&&t<=e.right},inYRange:function(t){var e=o(this);return t>=e.top&&t<=e.bottom},getCenterPoint:function(){var t,e,a=this._view;return e=l(this)?(t=a.x,(a.y+a.base)/2):(t=(a.x+a.base)/2,a.y),{x:t,y:e}},getArea:function(){var t=this._view;return t.width*Math.abs(t.y-t.base)},tooltipPosition:function(){var t=this._view;return{x:t.x,y:t.y}}})},{25:25,26:26}],40:[function(t,e,a){"use strict";e.exports={},e.exports.Arc=t(36),e.exports.Line=t(37),e.exports.Point=t(38),e.exports.Rectangle=t(39)},{36:36,37:37,38:38,39:39}],41:[function(t,e,a){"use strict";var i=t(42);a=e.exports={clear:function(t){t.ctx.clearRect(0,0,t.width,t.height)},roundedRect:function(t,e,a,i,n,o){if(o){var r=Math.min(o,i/2),s=Math.min(o,n/2);t.moveTo(e+r,a),t.lineTo(e+i-r,a),t.quadraticCurveTo(e+i,a,e+i,a+s),t.lineTo(e+i,a+n-s),t.quadraticCurveTo(e+i,a+n,e+i-r,a+n),t.lineTo(e+r,a+n),t.quadraticCurveTo(e,a+n,e,a+n-s),t.lineTo(e,a+s),t.quadraticCurveTo(e,a,e+r,a)}else t.rect(e,a,i,n)},drawPoint:function(t,e,a,i,n){var o,r,s,l,d,c;if(!e||"object"!=typeof e||"[object HTMLImageElement]"!==(o=e.toString())&&"[object HTMLCanvasElement]"!==o){if(!(isNaN(a)||a<=0)){switch(e){default:t.beginPath(),t.arc(i,n,a,0,2*Math.PI),t.closePath(),t.fill();break;case"triangle":t.beginPath(),d=(r=3*a/Math.sqrt(3))*Math.sqrt(3)/2,t.moveTo(i-r/2,n+d/3),t.lineTo(i+r/2,n+d/3),t.lineTo(i,n-2*d/3),t.closePath(),t.fill();break;case"rect":c=1/Math.SQRT2*a,t.beginPath(),t.fillRect(i-c,n-c,2*c,2*c),t.strokeRect(i-c,n-c,2*c,2*c);break;case"rectRounded":var u=a/Math.SQRT2,h=i-u,f=n-u,p=Math.SQRT2*a;t.beginPath(),this.roundedRect(t,h,f,p,p,a/2),t.closePath(),t.fill();break;case"rectRot":c=1/Math.SQRT2*a,t.beginPath(),t.moveTo(i-c,n),t.lineTo(i,n+c),t.lineTo(i+c,n),t.lineTo(i,n-c),t.closePath(),t.fill();break;case"cross":t.beginPath(),t.moveTo(i,n+a),t.lineTo(i,n-a),t.moveTo(i-a,n),t.lineTo(i+a,n),t.closePath();break;case"crossRot":t.beginPath(),s=Math.cos(Math.PI/4)*a,l=Math.sin(Math.PI/4)*a,t.moveTo(i-s,n-l),t.lineTo(i+s,n+l),t.moveTo(i-s,n+l),t.lineTo(i+s,n-l),t.closePath();break;case"star":t.beginPath(),t.moveTo(i,n+a),t.lineTo(i,n-a),t.moveTo(i-a,n),t.lineTo(i+a,n),s=Math.cos(Math.PI/4)*a,l=Math.sin(Math.PI/4)*a,t.moveTo(i-s,n-l),t.lineTo(i+s,n+l),t.moveTo(i-s,n+l),t.lineTo(i+s,n-l),t.closePath();break;case"line":t.beginPath(),t.moveTo(i-a,n),t.lineTo(i+a,n),t.closePath();break;case"dash":t.beginPath(),t.moveTo(i,n),t.lineTo(i+a,n),t.closePath()}t.stroke()}}else t.drawImage(e,i-e.width/2,n-e.height/2,e.width,e.height)},clipArea:function(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()},unclipArea:function(t){t.restore()},lineTo:function(t,e,a,i){if(a.steppedLine)return"after"===a.steppedLine&&!i||"after"!==a.steppedLine&&i?t.lineTo(e.x,a.y):t.lineTo(a.x,e.y),void t.lineTo(a.x,a.y);a.tension?t.bezierCurveTo(i?e.controlPointPreviousX:e.controlPointNextX,i?e.controlPointPreviousY:e.controlPointNextY,i?a.controlPointNextX:a.controlPointPreviousX,i?a.controlPointNextY:a.controlPointPreviousY,a.x,a.y):t.lineTo(a.x,a.y)}};i.clear=a.clear,i.drawRoundedRectangle=function(t){t.beginPath(),a.roundedRect.apply(a,arguments),t.closePath()}},{42:42}],42:[function(t,e,a){"use strict";var i,c={noop:function(){},uid:(i=0,function(){return i++}),isNullOrUndef:function(t){return null==t},isArray:Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)},isObject:function(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)},valueOrDefault:function(t,e){return void 0===t?e:t},valueAtIndexOrDefault:function(t,e,a){return c.valueOrDefault(c.isArray(t)?t[e]:t,a)},callback:function(t,e,a){if(t&&"function"==typeof t.call)return t.apply(a,e)},each:function(t,e,a,i){var n,o,r;if(c.isArray(t))if(o=t.length,i)for(n=o-1;0<=n;n--)e.call(a,t[n],n);else for(n=0;n
';var n=e.childNodes[0],o=e.childNodes[1];e._reset=function(){n.scrollLeft=1e6,n.scrollTop=1e6,o.scrollLeft=1e6,o.scrollTop=1e6};var r=function(){e._reset(),t()};return y(n,"scroll",r.bind(n,"expand")),y(o,"scroll",r.bind(o,"shrink")),e}((o=!(i=function(){if(u.resizer)return t(x("resize",a))}),r=[],function(){r=Array.prototype.slice.call(arguments),n=n||this,o||(o=!0,f.requestAnimFrame.call(window,function(){o=!1,i.apply(n,r)}))}));l=function(){if(u.resizer){var t=e.parentNode;t&&t!==h.parentNode&&t.insertBefore(h,t.firstChild),h._reset()}},d=(s=e)[p]||(s[p]={}),c=d.renderProxy=function(t){t.animationName===v&&l()},f.each(b,function(t){y(s,t,c)}),d.reflow=!!s.offsetParent,s.classList.add(m)}function o(t){var e,a,i,n=t[p]||{},o=n.resizer;delete n.resizer,a=(e=t)[p]||{},(i=a.renderProxy)&&(f.each(b,function(t){r(e,t,i)}),delete a.renderProxy),e.classList.remove(m),o&&o.parentNode&&o.parentNode.removeChild(o)}e.exports={_enabled:"undefined"!=typeof window&&"undefined"!=typeof document,initialize:function(){var t,e,a,i="from{opacity:0.99}to{opacity:1}";e="@-webkit-keyframes "+v+"{"+i+"}@keyframes "+v+"{"+i+"}."+m+"{-webkit-animation:"+v+" 0.001s;animation:"+v+" 0.001s;}",a=(t=this)._style||document.createElement("style"),t._style||(e="/* Chart.js */\n"+e,(t._style=a).setAttribute("type","text/css"),document.getElementsByTagName("head")[0].appendChild(a)),a.appendChild(document.createTextNode(e))},acquireContext:function(t,e){"string"==typeof t?t=document.getElementById(t):t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas);var a=t&&t.getContext&&t.getContext("2d");return a&&a.canvas===t?(function(t,e){var a=t.style,i=t.getAttribute("height"),n=t.getAttribute("width");if(t[p]={initial:{height:i,width:n,style:{display:a.display,height:a.height,width:a.width}}},a.display=a.display||"block",null===n||""===n){var o=l(t,"width");void 0!==o&&(t.width=o)}if(null===i||""===i)if(""===t.style.height)t.height=t.width/(e.options.aspectRatio||2);else{var r=l(t,"height");void 0!==o&&(t.height=r)}}(t,e),a):null},releaseContext:function(t){var a=t.canvas;if(a[p]){var i=a[p].initial;["height","width"].forEach(function(t){var e=i[t];f.isNullOrUndef(e)?a.removeAttribute(t):a.setAttribute(t,e)}),f.each(i.style||{},function(t,e){a.style[e]=t}),a.width=a.width,delete a[p]}},addEventListener:function(o,t,r){var e=o.canvas;if("resize"!==t){var a=r[p]||(r[p]={});y(e,t,(a.proxies||(a.proxies={}))[o.id+"_"+t]=function(t){var e,a,i,n;r((a=o,i=s[(e=t).type]||e.type,n=f.getRelativePosition(e,a),x(i,a,n.x,n.y,e)))})}else n(e,r,o)},removeEventListener:function(t,e,a){var i=t.canvas;if("resize"!==e){var n=((a[p]||{}).proxies||{})[t.id+"_"+e];n&&r(i,e,n)}else o(i)}},f.addEvent=y,f.removeEvent=r},{45:45}],48:[function(t,e,a){"use strict";var i=t(45),n=t(46),o=t(47),r=o._enabled?o:n;e.exports=i.extend({initialize:function(){},acquireContext:function(){},releaseContext:function(){},addEventListener:function(){},removeEventListener:function(){}},r)},{45:45,46:46,47:47}],49:[function(t,e,a){"use strict";var d=t(25),m=t(40),c=t(45);d._set("global",{plugins:{filler:{propagate:!0}}}),e.exports=function(){var h={dataset:function(t){var e=t.fill,a=t.chart,i=a.getDatasetMeta(e),n=i&&a.isDatasetVisible(e)&&i.dataset._children||[],o=n.length||0;return o?function(t,e){return e');for(var a=0;a'),t.data.datasets[a].label&&e.push(t.data.datasets[a].label),e.push("");return e.push(""),e.join("")}}),e.exports=function(i){var n=i.layoutService,t=A.noop;function T(t,e){return t.usePointStyle?e*Math.SQRT2:t.boxWidth}function o(t,e){var a=new i.Legend({ctx:t.ctx,options:e,chart:t});n.configure(t,a,e),n.addBox(t,a),t.legend=a}return i.Legend=r.extend({initialize:function(t){A.extend(this,t),this.legendHitBoxes=[],this.doughnutMode=!1},beforeUpdate:t,update:function(t,e,a){var i=this;return i.beforeUpdate(),i.maxWidth=t,i.maxHeight=e,i.margins=a,i.beforeSetDimensions(),i.setDimensions(),i.afterSetDimensions(),i.beforeBuildLabels(),i.buildLabels(),i.afterBuildLabels(),i.beforeFit(),i.fit(),i.afterFit(),i.afterUpdate(),i.minSize},afterUpdate:t,beforeSetDimensions:t,setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0,t.minSize={width:0,height:0}},afterSetDimensions:t,beforeBuildLabels:t,buildLabels:function(){var e=this,a=e.options.labels||{},t=A.callback(a.generateLabels,[e.chart],e)||[];a.filter&&(t=t.filter(function(t){return a.filter(t,e.chart.data)})),e.options.reverse&&t.reverse(),e.legendItems=t},afterBuildLabels:t,beforeFit:t,fit:function(){var i=this,t=i.options,n=t.labels,e=t.display,o=i.ctx,a=P.global,r=A.valueOrDefault,s=r(n.fontSize,a.defaultFontSize),l=r(n.fontStyle,a.defaultFontStyle),d=r(n.fontFamily,a.defaultFontFamily),c=A.fontString(s,l,d),u=i.legendHitBoxes=[],h=i.minSize,f=i.isHorizontal();if(h.height=f?(h.width=i.maxWidth,e?10:0):(h.width=e?10:0,i.maxHeight),e)if(o.font=c,f){var p=i.lineWidths=[0],g=i.legendItems.length?s+n.padding:0;o.textAlign="left",o.textBaseline="top",A.each(i.legendItems,function(t,e){var a=T(n,s)+s/2+o.measureText(t.text).width;p[p.length-1]+a+n.padding>=i.width&&(g+=s+n.padding,p[p.length]=i.left),u[e]={left:0,top:0,width:a,height:s},p[p.length-1]+=a+n.padding}),h.height+=g}else{var m=n.padding,v=i.columnWidths=[],b=n.padding,y=0,x=0,w=s+m;A.each(i.legendItems,function(t,e){var a=T(n,s)+s/2+o.measureText(t.text).width;x+w>h.height&&(b+=y+n.padding,v.push(y),x=y=0),y=Math.max(y,a),x+=w,u[e]={left:0,top:0,width:a,height:s}}),b+=y,v.push(y),h.width+=b}i.width=h.width,i.height=h.height},afterFit:t,isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},draw:function(){var u=this,h=u.options,f=h.labels,p=P.global,g=p.elements.line,m=u.width,v=u.lineWidths;if(h.display){var b,y=u.ctx,x=A.valueOrDefault,t=x(f.fontColor,p.defaultFontColor),w=x(f.fontSize,p.defaultFontSize),e=x(f.fontStyle,p.defaultFontStyle),a=x(f.fontFamily,p.defaultFontFamily),i=A.fontString(w,e,a);y.textAlign="left",y.textBaseline="middle",y.lineWidth=.5,y.strokeStyle=t,y.fillStyle=t,y.font=i;var S=T(f,w),C=u.legendHitBoxes,k=u.isHorizontal();b=k?{x:u.left+(m-v[0])/2,y:u.top+f.padding,line:0}:{x:u.left+f.padding,y:u.top+f.padding,line:0};var M=w+f.padding;A.each(u.legendItems,function(t,e){var a,i,n,o,r,s=y.measureText(t.text).width,l=S+w/2+s,d=b.x,c=b.y;k?m<=d+l&&(c=b.y+=M,b.line++,d=b.x=u.left+(m-v[b.line])/2):c+M>u.bottom&&(d=b.x=d+u.columnWidths[b.line]+f.padding,c=b.y=u.top+f.padding,b.line++),function(t,e,a){if(!(isNaN(S)||S<=0)){y.save(),y.fillStyle=x(a.fillStyle,p.defaultColor),y.lineCap=x(a.lineCap,g.borderCapStyle),y.lineDashOffset=x(a.lineDashOffset,g.borderDashOffset),y.lineJoin=x(a.lineJoin,g.borderJoinStyle),y.lineWidth=x(a.lineWidth,g.borderWidth),y.strokeStyle=x(a.strokeStyle,p.defaultColor);var i=0===x(a.lineWidth,g.borderWidth);if(y.setLineDash&&y.setLineDash(x(a.lineDash,g.borderDash)),h.labels&&h.labels.usePointStyle){var n=w*Math.SQRT2/2,o=n/Math.SQRT2,r=t+o,s=e+o;A.canvas.drawPoint(y,a.pointStyle,n,r,s)}else i||y.strokeRect(t,e,S,w),y.fillRect(t,e,S,w);y.restore()}}(d,c,t),C[e].left=d,C[e].top=c,a=t,i=s,o=S+(n=w/2)+d,r=c+n,y.fillText(a.text,o,r),a.hidden&&(y.beginPath(),y.lineWidth=2,y.moveTo(o,r),y.lineTo(o+i,r),y.stroke()),k?b.x+=l+f.padding:b.y+=M})}},handleEvent:function(t){var e=this,a=e.options,i="mouseup"===t.type?"click":t.type,n=!1;if("mousemove"===i){if(!a.onHover)return}else{if("click"!==i)return;if(!a.onClick)return}var o=t.x,r=t.y;if(o>=e.left&&o<=e.right&&r>=e.top&&r<=e.bottom)for(var s=e.legendHitBoxes,l=0;l=d.left&&o<=d.left+d.width&&r>=d.top&&r<=d.top+d.height){if("click"===i){a.onClick.call(e,t.native,e.legendItems[l]),n=!0;break}if("mousemove"===i){a.onHover.call(e,t.native,e.legendItems[l]),n=!0;break}}}return n}}),{id:"legend",beforeInit:function(t){var e=t.options.legend;e&&o(t,e)},beforeUpdate:function(t){var e=t.options.legend,a=t.legend;e?(A.mergeIf(e,P.global.legend),a?(n.configure(t,a,e),a.options=e):o(t,e)):a&&(n.removeBox(t,a),delete t.legend)},afterEvent:function(t,e){var a=t.legend;a&&a.handleEvent(e)}}}},{25:25,26:26,45:45}],51:[function(t,e,a){"use strict";var S=t(25),r=t(26),C=t(45);S._set("global",{title:{display:!1,fontStyle:"bold",fullWidth:!0,lineHeight:1.2,padding:10,position:"top",text:"",weight:2e3}}),e.exports=function(i){var n=i.layoutService,t=C.noop;function o(t,e){var a=new i.Title({ctx:t.ctx,options:e,chart:t});n.configure(t,a,e),n.addBox(t,a),t.titleBlock=a}return i.Title=r.extend({initialize:function(t){C.extend(this,t),this.legendHitBoxes=[]},beforeUpdate:t,update:function(t,e,a){var i=this;return i.beforeUpdate(),i.maxWidth=t,i.maxHeight=e,i.margins=a,i.beforeSetDimensions(),i.setDimensions(),i.afterSetDimensions(),i.beforeBuildLabels(),i.buildLabels(),i.afterBuildLabels(),i.beforeFit(),i.fit(),i.afterFit(),i.afterUpdate(),i.minSize},afterUpdate:t,beforeSetDimensions:t,setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0,t.minSize={width:0,height:0}},afterSetDimensions:t,beforeBuildLabels:t,buildLabels:t,afterBuildLabels:t,beforeFit:t,fit:function(){var t=this,e=C.valueOrDefault,a=t.options,i=a.display,n=e(a.fontSize,S.global.defaultFontSize),o=t.minSize,r=C.isArray(a.text)?a.text.length:1,s=C.options.toLineHeight(a.lineHeight,n),l=i?r*s+2*a.padding:0;t.isHorizontal()?(o.width=t.maxWidth,o.height=l):(o.width=l,o.height=t.maxHeight),t.width=o.width,t.height=o.height},afterFit:t,isHorizontal:function(){var t=this.options.position;return"top"===t||"bottom"===t},draw:function(){var t=this,e=t.ctx,a=C.valueOrDefault,i=t.options,n=S.global;if(i.display){var o,r,s,l=a(i.fontSize,n.defaultFontSize),d=a(i.fontStyle,n.defaultFontStyle),c=a(i.fontFamily,n.defaultFontFamily),u=C.fontString(l,d,c),h=C.options.toLineHeight(i.lineHeight,l),f=h/2+i.padding,p=0,g=t.top,m=t.left,v=t.bottom,b=t.right;e.fillStyle=a(i.fontColor,n.defaultFontColor),e.font=u,t.isHorizontal()?(r=m+(b-m)/2,s=g+f,o=b-m):(r="left"===i.position?m+f:b-f,s=g+(v-g)/2,o=v-g,p=Math.PI*("left"===i.position?-.5:.5)),e.save(),e.translate(r,s),e.rotate(p),e.textAlign="center",e.textBaseline="middle";var y=i.text;if(C.isArray(y))for(var x=0,w=0;wr.max&&(r.max=a))})});r.min=isFinite(r.min)&&!isNaN(r.min)?r.min:0,r.max=isFinite(r.max)&&!isNaN(r.max)?r.max:1,this.handleTickRangeOptions()},getTickLimit:function(){var t,e=this.options.ticks;if(this.isHorizontal())t=Math.min(e.maxTicksLimit?e.maxTicksLimit:11,Math.ceil(this.width/50));else{var a=u.valueOrDefault(e.fontSize,i.global.defaultFontSize);t=Math.min(e.maxTicksLimit?e.maxTicksLimit:11,Math.ceil(this.height/(2*a)))}return t},handleDirectionalChanges:function(){this.isHorizontal()||this.ticks.reverse()},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},getPixelForValue:function(t){var e,a=this,i=a.start,n=+a.getRightValue(t),o=a.end-i;return e=a.isHorizontal()?a.left+a.width/o*(n-i):a.bottom-a.height/o*(n-i),Math.round(e)},getValueForPixel:function(t){var e=this,a=e.isHorizontal(),i=a?e.width:e.height,n=(a?t-e.left:e.bottom-t)/i;return e.start+(e.end-e.start)*n},getPixelForTick:function(t){return this.getPixelForValue(this.ticksAsNumbers[t])}});t.scaleService.registerScaleType("linear",a,e)}},{25:25,34:34,45:45}],54:[function(t,e,a){"use strict";var r=t(45),o=t(34);e.exports=function(e){var t=r.noop;e.LinearScaleBase=e.Scale.extend({getRightValue:function(t){return"string"==typeof t?+t:e.Scale.prototype.getRightValue.call(this,t)},handleTickRangeOptions:function(){var t=this,e=t.options.ticks;if(e.beginAtZero){var a=r.sign(t.min),i=r.sign(t.max);a<0&&i<0?t.max=0:0=t.max&&(n?t.max=t.min+1:t.min=t.max-1),t.min===t.max&&(t.max++,e.beginAtZero||t.min--)},getTickLimit:t,handleDirectionalChanges:t,buildTicks:function(){var t=this,e=t.options.ticks,a=t.getTickLimit(),i={maxTicks:a=Math.max(2,a),min:e.min,max:e.max,stepSize:r.valueOrDefault(e.fixedStepSize,e.stepSize)},n=t.ticks=o.generators.linear(i,t);t.handleDirectionalChanges(),t.max=r.max(n),t.min=r.min(n),e.reverse?(n.reverse(),t.start=t.max,t.end=t.min):(t.start=t.min,t.end=t.max)},convertTicksToLabels:function(){var t=this;t.ticksAsNumbers=t.ticks.slice(),t.zeroLineIndex=t.ticks.indexOf(0),e.Scale.prototype.convertTicksToLabels.call(t)}})}},{34:34,45:45}],55:[function(t,e,a){"use strict";var u=t(45),n=t(34);e.exports=function(t){var e={position:"left",ticks:{callback:n.formatters.logarithmic}},a=t.Scale.extend({determineDataLimits:function(){var r=this,s=r.options,t=s.ticks,l=r.chart,e=l.data.datasets,a=u.valueOrDefault,i=r.isHorizontal();function d(t){return i?t.xAxisID===r.id:t.yAxisID===r.id}r.min=null,r.max=null,r.minNotZero=null;var n=s.stacked;if(void 0===n&&u.each(e,function(t,e){if(!n){var a=l.getDatasetMeta(e);l.isDatasetVisible(e)&&d(a)&&void 0!==a.stack&&(n=!0)}}),s.stacked||n){var c={};u.each(e,function(t,e){var n=l.getDatasetMeta(e),o=[n.type,void 0===s.stacked&&void 0===n.stack?e:"",n.stack].join(".");l.isDatasetVisible(e)&&d(n)&&(void 0===c[o]&&(c[o]=[]),u.each(t.data,function(t,e){var a=c[o],i=+r.getRightValue(t);isNaN(i)||n.data[e].hidden||(a[e]=a[e]||0,s.relativePoints?a[e]=100:a[e]+=i)}))}),u.each(c,function(t){var e=u.min(t),a=u.max(t);r.min=null===r.min?e:Math.min(r.min,e),r.max=null===r.max?a:Math.max(r.max,a)})}else u.each(e,function(t,e){var i=l.getDatasetMeta(e);l.isDatasetVisible(e)&&d(i)&&u.each(t.data,function(t,e){var a=+r.getRightValue(t);isNaN(a)||i.data[e].hidden||(null===r.min?r.min=a:ar.max&&(r.max=a),0!==a&&(null===r.minNotZero||ar.r&&(r.r=p.end,s.r=h),g.startr.b&&(r.b=g.end,s.b=h)}t.setReductions(o,r,s)}(this):(t=this,e=Math.min(t.height/2,t.width/2),t.drawingArea=Math.round(e),t.setCenterPoint(0,0,0,0))},setReductions:function(t,e,a){var i=e.l/Math.sin(a.l),n=Math.max(e.r-this.width,0)/Math.sin(a.r),o=-e.t/Math.cos(a.t),r=-Math.max(e.b-this.height,0)/Math.cos(a.b);i=s(i),n=s(n),o=s(o),r=s(r),this.drawingArea=Math.min(Math.round(t-(i+n)/2),Math.round(t-(o+r)/2)),this.setCenterPoint(i,n,o,r)},setCenterPoint:function(t,e,a,i){var n=this,o=n.width-e-n.drawingArea,r=t+n.drawingArea,s=a+n.drawingArea,l=n.height-i-n.drawingArea;n.xCenter=Math.round((r+o)/2+n.left),n.yCenter=Math.round((s+l)/2+n.top)},getIndexAngle:function(t){return t*(2*Math.PI/y(this))+(this.chart.options&&this.chart.options.startAngle?this.chart.options.startAngle:0)*Math.PI*2/360},getDistanceFromCenterForValue:function(t){var e=this;if(null===t)return 0;var a=e.drawingArea/(e.max-e.min);return e.options.ticks.reverse?(e.max-t)*a:(t-e.min)*a},getPointPosition:function(t,e){var a=this.getIndexAngle(t)-Math.PI/2;return{x:Math.round(Math.cos(a)*e)+this.xCenter,y:Math.round(Math.sin(a)*e)+this.yCenter}},getPointPositionForValue:function(t,e){return this.getPointPosition(t,this.getDistanceFromCenterForValue(e))},getBasePosition:function(){var t=this.min,e=this.max;return this.getPointPositionForValue(0,this.beginAtZero?0:t<0&&e<0?e:0>1)-1]||null,o=t[i],!n)return{lo:null,hi:o};if(o[e]a))return{lo:n,hi:o};s=i-1}}return{lo:o,hi:null}}(t,e,a),o=n.lo?n.hi?n.lo:t[t.length-2]:t[0],r=n.lo?n.hi?n.hi:t[t.length-1]:t[1],s=r[e]-o[e],l=s?(a-o[e])/s:0,d=(r[i]-o[i])*l;return o[i]+d}function s(t,e){var a=e.parser,i=e.parser||e.format;return"function"==typeof a?a(t):"string"==typeof t&&"string"==typeof i?y(t,i):(t instanceof y||(t=y(t)),t.isValid()?t:"function"==typeof i?i(t):t)}function C(t,e){if(m.isNullOrUndef(t))return null;var a=e.options.time,i=s(e.getRightValue(t),a);return i.isValid()?(a.round&&i.startOf(a.round),i.valueOf()):null}function k(t){for(var e=w.indexOf(t)+1,a=w.length;e=w.indexOf(e);n--)if(o=w[n],x[o].common&&r.as(o)>=t.length)return o;return w[e?w.indexOf(e):0]}(b,m.minUnit,h.min,h.max),h._majorUnit=k(h._unit),h._table=function(t,e,a,i){if("linear"===i||!t.length)return[{time:e,pos:0},{time:a,pos:1}];var n,o,r,s,l,d=[],c=[e];for(n=0,o=t.length;n")[O]("ifCreated").parent().append(f.insert),t=x('').css(r).appendTo(h),i.data(w,{o:f,s:i.attr("style")}).css(s),f.inheritClass&&h[F](n.className||""),f.inheritID&&e&&h.attr("id",w+"-"+e),"static"==h.css("position")&&h.css("position","relative"),E(i,!0,A),d.length&&d.on(I+".i mouseover.i mouseout.i "+D,function(t){var e=t[_],a=x(this);if(!n[T]){if(e==I){if(x(t.target).is("a"))return;E(i,!1,!0)}else v&&(/ut|nd/.test(e)?(h[R](p),a[R](b)):(h[F](p),a[F](b)));if(!B)return!1;t.stopPropagation()}}),i.on(I+".i focus.i blur.i keyup.i keydown.i keypress.i",function(t){var e=t[_],a=t.keyCode;return e!=I&&("keydown"==e&&32==a?(n[_]==k&&n[M]||(n[M]?H(i,M):N(i,M)),!1):void("keyup"==e&&n[_]==k?!n[M]&&N(i,M):/us|ur/.test(e)&&h["blur"==e?R:F](g)))}),t.on(I+" mousedown mouseup mouseover mouseout "+D,function(t){var e=t[_],a=/wn|up/.test(e)?m:p;if(!n[T]){if(e==I?E(i,!1,!0):(/wn|er|in/.test(e)?h[F](a):h[R](a+" "+m),d.length&&v&&a==p&&d[/ut|nd/.test(e)?R:F](b)),!B)return!1;t.stopPropagation()}})})}}(window.jQuery||window.Zepto);var sheet=gMakeSheet(),xsSheet=sheet,smSheet=gMakeSheet("only screen and (min-width: 768px)"),mdSheet=gMakeSheet("only screen and (min-width: 992px)"),lgSheet=gMakeSheet("only screen and (min-width: 1200px)");if(gAddStyleToSheet(null,".yop-poll-container [class*='col-']","padding-left:15px;padding-right:15px;"),gAddStyleToSheet(null,".flush-row [class*='col-']:first-of-type","padding-left:0 !important;"),gAddStyleToSheet(null,".flush-row [class*='col-']:last-of-type","padding-right:0 !important;"),function(r){r(document).ready(function(){var i={};r(".basic-yop-poll-container").find(".row[data-columns]").each(function(){var t=r(this).data("columns");if(r(this).addClass("cols-"+t),void 0===i["cols-"+t]){i["cols-"+t]="";for(var e=1;e<=t;e++){var a=e/t*100;gAddStyleToSheet(lgSheet,".cols-"+t+" .col-lg-"+e,"width: "+a+"%; float:left;"),gAddStyleToSheet(mdSheet,".cols-"+t+" .col-md-"+e,"width: "+a+"%; float:left;"),gAddStyleToSheet(smSheet,".cols-"+t+" .col-sm-"+e,"width: "+a+"%; float:left;"),gAddStyleToSheet(xsSheet,".cols-"+t+" .col-xs-"+e,"width: "+a+"%; float:left;"),gAddStyleToSheet(lgSheet,".cols-"+t+" .col-lg-push-"+e,"left: "+a+"%;"),gAddStyleToSheet(mdSheet,".cols-"+t+" .col-md-push-"+e,"left: "+a+"%;"),gAddStyleToSheet(smSheet,".cols-"+t+" .col-sm-push-"+e,"left: "+a+"%;"),gAddStyleToSheet(xsSheet,".cols-"+t+" .col-xs-push-"+e,"left: "+a+"%;"),gAddStyleToSheet(lgSheet,".cols-"+t+" .col-lg-pull-"+e,"right: "+a+"%;"),gAddStyleToSheet(mdSheet,".cols-"+t+" .col-md-pull-"+e,"right: "+a+"%;"),gAddStyleToSheet(smSheet,".cols-"+t+" .col-sm-pull-"+e,"right: "+a+"%;"),gAddStyleToSheet(xsSheet,".cols-"+t+" .col-xs-pull-"+e,"right: "+a+"%;")}}}),window.createGrid=function(t){r(t).find(".row[data-columns]").each(function(){var t=r(this).data("columns");if(r(this).addClass("cols-"+t),void 0===i["cols-"+t]){i["cols-"+t]="";for(var e=1;e<=t;e++){var a=e/t*100;gAddStyleToSheet(lgSheet,".cols-"+t+" .col-lg-"+e,"width: "+a+"%; float:left;"),gAddStyleToSheet(mdSheet,".cols-"+t+" .col-md-"+e,"width: "+a+"%; float:left;"),gAddStyleToSheet(smSheet,".cols-"+t+" .col-sm-"+e,"width: "+a+"%; float:left;"),gAddStyleToSheet(xsSheet,".cols-"+t+" .col-xs-"+e,"width: "+a+"%; float:left;"),gAddStyleToSheet(lgSheet,".cols-"+t+" .col-lg-push-"+e,"left: "+a+"%;"),gAddStyleToSheet(mdSheet,".cols-"+t+" .col-md-push-"+e,"left: "+a+"%;"),gAddStyleToSheet(smSheet,".cols-"+t+" .col-sm-push-"+e,"left: "+a+"%;"),gAddStyleToSheet(xsSheet,".cols-"+t+" .col-xs-push-"+e,"left: "+a+"%;"),gAddStyleToSheet(lgSheet,".cols-"+t+" .col-lg-pull-"+e,"right: "+a+"%;"),gAddStyleToSheet(mdSheet,".cols-"+t+" .col-md-pull-"+e,"right: "+a+"%;"),gAddStyleToSheet(smSheet,".cols-"+t+" .col-sm-pull-"+e,"right: "+a+"%;"),gAddStyleToSheet(xsSheet,".cols-"+t+" .col-xs-pull-"+e,"right: "+a+"%;")}}})};var o={};r(".row[data-gutter-width]").each(function(){var t=r(this).data("gutter-width");r(this).addClass("gutter-width-"+t);var e=r(this).data("gutter-scaling");(e="no"!=(e=void 0===e||e)&&"false"!=e&&"0"!=e&&0!==e)&&r(this).addClass("gutter-scaled-width-"+t);var a=r(this).data("flush-row");if((a="yes"==a||"true"==a||"1"==a||1===a)&&r(this).addClass("flush-row"),void 0===o["gutter-width-"+t]){o["gutter-width-"+t]="";var i=Math.floor(t/2);gAddStyleToSheet(lgSheet,".gutter-width-"+t+" [class*='col-lg-']","position: relative; min-height: 1px; padding-left: "+i+"px; padding-right: "+i+"px;"),gAddStyleToSheet(mdSheet,".gutter-width-"+t+" [class*='col-md-']","position: relative; min-height: 1px; padding-left: "+i+"px; padding-right: "+i+"px;"),gAddStyleToSheet(smSheet,".gutter-width-"+t+" [class*='col-sm-']","position: relative; min-height: 1px; padding-left: "+i+"px; padding-right: "+i+"px;"),gAddStyleToSheet(xsSheet,".gutter-width-"+t+" [class*='col-xs-']","position: relative; min-height: 1px; padding-left: "+i+"px; padding-right: "+i+"px;");var n=Math.floor(t/4);gAddStyleToSheet(xsSheet,".gutter-scaled-width-"+t+" [class*='col-xs-']","position: relative; min-height: 1px; padding-left: "+n+"px !important; padding-right: "+n+"px !important;"),gAddStyleToSheet(smSheet,".gutter-scaled-width-"+t+" [class*='col-sm-']","position: relative; min-height: 1px; padding-left: "+n+"px !important; padding-right: "+n+"px !important;"),gAddStyleToSheet(mdSheet,".gutter-scaled-width-"+t+" [class*='col-md-']","position: relative; min-height: 1px; padding-left: "+i+"px !important; padding-right: "+i+"px !important;"),gAddStyleToSheet(lgSheet,".gutter-scaled-width-"+t+" [class*='col-lg-']","position: relative; min-height: 1px; padding-left: "+i+"px !important; padding-right: "+i+"px !important;")}})})}(jQuery),function(t,e,a){"use strict";"function"==typeof window.define&&window.define.amd?window.define(a):"undefined"!=typeof module&&module.exports?module.exports=a():e.exports?e.exports=a():e.Fingerprint2=a()}(0,this,function(){"use strict";var e=function(t){if(!(this instanceof e))return new e(t);this.options=this.extend(t,{swfContainerId:"fingerprintjs2",swfPath:"flash/compiled/FontList.swf",detectScreenOrientation:!0,sortPluginsFor:[/palemoon/i],userDefinedFonts:[],excludeDoNotTrack:!0}),this.nativeForEach=Array.prototype.forEach,this.nativeMap=Array.prototype.map};return e.prototype={extend:function(t,e){if(null==t)return e;for(var a in t)null!=t[a]&&e[a]!==t[a]&&(e[a]=t[a]);return e},get:function(i){var n=this,a={data:[],addPreprocessedComponent:function(t){var e=t.value;"function"==typeof n.options.preprocessor&&(e=n.options.preprocessor(t.key,e)),a.data.push({key:t.key,value:e})}};a=this.userAgentKey(a),a=this.languageKey(a),a=this.colorDepthKey(a),a=this.deviceMemoryKey(a),a=this.pixelRatioKey(a),a=this.hardwareConcurrencyKey(a),a=this.screenResolutionKey(a),a=this.availableScreenResolutionKey(a),a=this.timezoneOffsetKey(a),a=this.sessionStorageKey(a),a=this.localStorageKey(a),a=this.indexedDbKey(a),a=this.addBehaviorKey(a),a=this.openDatabaseKey(a),a=this.cpuClassKey(a),a=this.platformKey(a),a=this.doNotTrackKey(a),a=this.pluginsKey(a),a=this.canvasKey(a),a=this.webglKey(a),a=this.webglVendorAndRendererKey(a),a=this.adBlockKey(a),a=this.hasLiedLanguagesKey(a),a=this.hasLiedResolutionKey(a),a=this.hasLiedOsKey(a),a=this.hasLiedBrowserKey(a),a=this.touchSupportKey(a),a=this.customEntropyFunction(a),this.fontsKey(a,function(t){var a=[];n.each(t.data,function(t){var e=t.value;e&&"function"==typeof e.join&&(e=e.join(";")),a.push(e)});var e=n.x64hash128(a.join("~~~"),31);return i(e,t.data)})},customEntropyFunction:function(t){return"function"==typeof this.options.customFunction&&t.addPreprocessedComponent({key:"custom",value:this.options.customFunction()}),t},userAgentKey:function(t){return this.options.excludeUserAgent||t.addPreprocessedComponent({key:"user_agent",value:this.getUserAgent()}),t},getUserAgent:function(){return navigator.userAgent},languageKey:function(t){return this.options.excludeLanguage||t.addPreprocessedComponent({key:"language",value:navigator.language||navigator.userLanguage||navigator.browserLanguage||navigator.systemLanguage||""}),t},colorDepthKey:function(t){return this.options.excludeColorDepth||t.addPreprocessedComponent({key:"color_depth",value:window.screen.colorDepth||-1}),t},deviceMemoryKey:function(t){return this.options.excludeDeviceMemory||t.addPreprocessedComponent({key:"device_memory",value:this.getDeviceMemory()}),t},getDeviceMemory:function(){return navigator.deviceMemory||-1},pixelRatioKey:function(t){return this.options.excludePixelRatio||t.addPreprocessedComponent({key:"pixel_ratio",value:this.getPixelRatio()}),t},getPixelRatio:function(){return window.devicePixelRatio||""},screenResolutionKey:function(t){return this.options.excludeScreenResolution?t:this.getScreenResolution(t)},getScreenResolution:function(t){var e;return e=this.options.detectScreenOrientation&&window.screen.height>window.screen.width?[window.screen.height,window.screen.width]:[window.screen.width,window.screen.height],t.addPreprocessedComponent({key:"resolution",value:e}),t},availableScreenResolutionKey:function(t){return this.options.excludeAvailableScreenResolution?t:this.getAvailableScreenResolution(t)},getAvailableScreenResolution:function(t){var e;return window.screen.availWidth&&window.screen.availHeight&&(e=this.options.detectScreenOrientation?window.screen.availHeight>window.screen.availWidth?[window.screen.availHeight,window.screen.availWidth]:[window.screen.availWidth,window.screen.availHeight]:[window.screen.availHeight,window.screen.availWidth]),void 0!==e&&t.addPreprocessedComponent({key:"available_resolution",value:e}),t},timezoneOffsetKey:function(t){return this.options.excludeTimezoneOffset||t.addPreprocessedComponent({key:"timezone_offset",value:(new Date).getTimezoneOffset()}),t},sessionStorageKey:function(t){return!this.options.excludeSessionStorage&&this.hasSessionStorage()&&t.addPreprocessedComponent({key:"session_storage",value:1}),t},localStorageKey:function(t){return!this.options.excludeSessionStorage&&this.hasLocalStorage()&&t.addPreprocessedComponent({key:"local_storage",value:1}),t},indexedDbKey:function(t){return!this.options.excludeIndexedDB&&this.hasIndexedDB()&&t.addPreprocessedComponent({key:"indexed_db",value:1}),t},addBehaviorKey:function(t){return!this.options.excludeAddBehavior&&document.body&&document.body.addBehavior&&t.addPreprocessedComponent({key:"add_behavior",value:1}),t},openDatabaseKey:function(t){return!this.options.excludeOpenDatabase&&window.openDatabase&&t.addPreprocessedComponent({key:"open_database",value:1}),t},cpuClassKey:function(t){return this.options.excludeCpuClass||t.addPreprocessedComponent({key:"cpu_class",value:this.getNavigatorCpuClass()}),t},platformKey:function(t){return this.options.excludePlatform||t.addPreprocessedComponent({key:"navigator_platform",value:this.getNavigatorPlatform()}),t},doNotTrackKey:function(t){return this.options.excludeDoNotTrack||t.addPreprocessedComponent({key:"do_not_track",value:this.getDoNotTrack()}),t},canvasKey:function(t){return!this.options.excludeCanvas&&this.isCanvasSupported()&&t.addPreprocessedComponent({key:"canvas",value:this.getCanvasFp()}),t},webglKey:function(t){return!this.options.excludeWebGL&&this.isWebGlSupported()&&t.addPreprocessedComponent({key:"webgl",value:this.getWebglFp()}),t},webglVendorAndRendererKey:function(t){return!this.options.excludeWebGLVendorAndRenderer&&this.isWebGlSupported()&&t.addPreprocessedComponent({key:"webgl_vendor",value:this.getWebglVendorAndRenderer()}),t},adBlockKey:function(t){return this.options.excludeAdBlock||t.addPreprocessedComponent({key:"adblock",value:this.getAdBlock()}),t},hasLiedLanguagesKey:function(t){return this.options.excludeHasLiedLanguages||t.addPreprocessedComponent({key:"has_lied_languages",value:this.getHasLiedLanguages()}),t},hasLiedResolutionKey:function(t){return this.options.excludeHasLiedResolution||t.addPreprocessedComponent({key:"has_lied_resolution",value:this.getHasLiedResolution()}),t},hasLiedOsKey:function(t){return this.options.excludeHasLiedOs||t.addPreprocessedComponent({key:"has_lied_os",value:this.getHasLiedOs()}),t},hasLiedBrowserKey:function(t){return this.options.excludeHasLiedBrowser||t.addPreprocessedComponent({key:"has_lied_browser",value:this.getHasLiedBrowser()}),t},fontsKey:function(t,e){return this.options.excludeJsFonts?this.flashFontsKey(t,e):this.jsFontsKey(t,e)},flashFontsKey:function(e,a){return this.options.excludeFlashFonts?a(e):this.hasSwfObjectLoaded()&&this.hasMinFlashInstalled()?void 0===this.options.swfPath?a(e):void this.loadSwfAndDetectFonts(function(t){e.addPreprocessedComponent({key:"swf_fonts",value:t.join(";")}),a(e)}):a(e)},jsFontsKey:function(m,v){var b=this;return setTimeout(function(){var c=["monospace","sans-serif","serif"],u=["Andale Mono","Arial","Arial Black","Arial Hebrew","Arial MT","Arial Narrow","Arial Rounded MT Bold","Arial Unicode MS","Bitstream Vera Sans Mono","Book Antiqua","Bookman Old Style","Calibri","Cambria","Cambria Math","Century","Century Gothic","Century Schoolbook","Comic Sans","Comic Sans MS","Consolas","Courier","Courier New","Geneva","Georgia","Helvetica","Helvetica Neue","Impact","Lucida Bright","Lucida Calligraphy","Lucida Console","Lucida Fax","LUCIDA GRANDE","Lucida Handwriting","Lucida Sans","Lucida Sans Typewriter","Lucida Sans Unicode","Microsoft Sans Serif","Monaco","Monotype Corsiva","MS Gothic","MS Outlook","MS PGothic","MS Reference Sans Serif","MS Sans Serif","MS Serif","MYRIAD","MYRIAD PRO","Palatino","Palatino Linotype","Segoe Print","Segoe Script","Segoe UI","Segoe UI Light","Segoe UI Semibold","Segoe UI Symbol","Tahoma","Times","Times New Roman","Times New Roman PS","Trebuchet MS","Verdana","Wingdings","Wingdings 2","Wingdings 3"];b.options.extendedJsFonts&&(u=u.concat(["Abadi MT Condensed Light","Academy Engraved LET","ADOBE CASLON PRO","Adobe Garamond","ADOBE GARAMOND PRO","Agency FB","Aharoni","Albertus Extra Bold","Albertus Medium","Algerian","Amazone BT","American Typewriter","American Typewriter Condensed","AmerType Md BT","Andalus","Angsana New","AngsanaUPC","Antique Olive","Aparajita","Apple Chancery","Apple Color Emoji","Apple SD Gothic Neo","Arabic Typesetting","ARCHER","ARNO PRO","Arrus BT","Aurora Cn BT","AvantGarde Bk BT","AvantGarde Md BT","AVENIR","Ayuthaya","Bandy","Bangla Sangam MN","Bank Gothic","BankGothic Md BT","Baskerville","Baskerville Old Face","Batang","BatangChe","Bauer Bodoni","Bauhaus 93","Bazooka","Bell MT","Bembo","Benguiat Bk BT","Berlin Sans FB","Berlin Sans FB Demi","Bernard MT Condensed","BernhardFashion BT","BernhardMod BT","Big Caslon","BinnerD","Blackadder ITC","BlairMdITC TT","Bodoni 72","Bodoni 72 Oldstyle","Bodoni 72 Smallcaps","Bodoni MT","Bodoni MT Black","Bodoni MT Condensed","Bodoni MT Poster Compressed","Bookshelf Symbol 7","Boulder","Bradley Hand","Bradley Hand ITC","Bremen Bd BT","Britannic Bold","Broadway","Browallia New","BrowalliaUPC","Brush Script MT","Californian FB","Calisto MT","Calligrapher","Candara","CaslonOpnface BT","Castellar","Centaur","Cezanne","CG Omega","CG Times","Chalkboard","Chalkboard SE","Chalkduster","Charlesworth","Charter Bd BT","Charter BT","Chaucer","ChelthmITC Bk BT","Chiller","Clarendon","Clarendon Condensed","CloisterBlack BT","Cochin","Colonna MT","Constantia","Cooper Black","Copperplate","Copperplate Gothic","Copperplate Gothic Bold","Copperplate Gothic Light","CopperplGoth Bd BT","Corbel","Cordia New","CordiaUPC","Cornerstone","Coronet","Cuckoo","Curlz MT","DaunPenh","Dauphin","David","DB LCD Temp","DELICIOUS","Denmark","DFKai-SB","Didot","DilleniaUPC","DIN","DokChampa","Dotum","DotumChe","Ebrima","Edwardian Script ITC","Elephant","English 111 Vivace BT","Engravers MT","EngraversGothic BT","Eras Bold ITC","Eras Demi ITC","Eras Light ITC","Eras Medium ITC","EucrosiaUPC","Euphemia","Euphemia UCAS","EUROSTILE","Exotc350 Bd BT","FangSong","Felix Titling","Fixedsys","FONTIN","Footlight MT Light","Forte","FrankRuehl","Fransiscan","Freefrm721 Blk BT","FreesiaUPC","Freestyle Script","French Script MT","FrnkGothITC Bk BT","Fruitger","FRUTIGER","Futura","Futura Bk BT","Futura Lt BT","Futura Md BT","Futura ZBlk BT","FuturaBlack BT","Gabriola","Galliard BT","Gautami","Geeza Pro","Geometr231 BT","Geometr231 Hv BT","Geometr231 Lt BT","GeoSlab 703 Lt BT","GeoSlab 703 XBd BT","Gigi","Gill Sans","Gill Sans MT","Gill Sans MT Condensed","Gill Sans MT Ext Condensed Bold","Gill Sans Ultra Bold","Gill Sans Ultra Bold Condensed","Gisha","Gloucester MT Extra Condensed","GOTHAM","GOTHAM BOLD","Goudy Old Style","Goudy Stout","GoudyHandtooled BT","GoudyOLSt BT","Gujarati Sangam MN","Gulim","GulimChe","Gungsuh","GungsuhChe","Gurmukhi MN","Haettenschweiler","Harlow Solid Italic","Harrington","Heather","Heiti SC","Heiti TC","HELV","Herald","High Tower Text","Hiragino Kaku Gothic ProN","Hiragino Mincho ProN","Hoefler Text","Humanst 521 Cn BT","Humanst521 BT","Humanst521 Lt BT","Imprint MT Shadow","Incised901 Bd BT","Incised901 BT","Incised901 Lt BT","INCONSOLATA","Informal Roman","Informal011 BT","INTERSTATE","IrisUPC","Iskoola Pota","JasmineUPC","Jazz LET","Jenson","Jester","Jokerman","Juice ITC","Kabel Bk BT","Kabel Ult BT","Kailasa","KaiTi","Kalinga","Kannada Sangam MN","Kartika","Kaufmann Bd BT","Kaufmann BT","Khmer UI","KodchiangUPC","Kokila","Korinna BT","Kristen ITC","Krungthep","Kunstler Script","Lao UI","Latha","Leelawadee","Letter Gothic","Levenim MT","LilyUPC","Lithograph","Lithograph Light","Long Island","Lydian BT","Magneto","Maiandra GD","Malayalam Sangam MN","Malgun Gothic","Mangal","Marigold","Marion","Marker Felt","Market","Marlett","Matisse ITC","Matura MT Script Capitals","Meiryo","Meiryo UI","Microsoft Himalaya","Microsoft JhengHei","Microsoft New Tai Lue","Microsoft PhagsPa","Microsoft Tai Le","Microsoft Uighur","Microsoft YaHei","Microsoft Yi Baiti","MingLiU","MingLiU_HKSCS","MingLiU_HKSCS-ExtB","MingLiU-ExtB","Minion","Minion Pro","Miriam","Miriam Fixed","Mistral","Modern","Modern No. 20","Mona Lisa Solid ITC TT","Mongolian Baiti","MONO","MoolBoran","Mrs Eaves","MS LineDraw","MS Mincho","MS PMincho","MS Reference Specialty","MS UI Gothic","MT Extra","MUSEO","MV Boli","Nadeem","Narkisim","NEVIS","News Gothic","News GothicMT","NewsGoth BT","Niagara Engraved","Niagara Solid","Noteworthy","NSimSun","Nyala","OCR A Extended","Old Century","Old English Text MT","Onyx","Onyx BT","OPTIMA","Oriya Sangam MN","OSAKA","OzHandicraft BT","Palace Script MT","Papyrus","Parchment","Party LET","Pegasus","Perpetua","Perpetua Titling MT","PetitaBold","Pickwick","Plantagenet Cherokee","Playbill","PMingLiU","PMingLiU-ExtB","Poor Richard","Poster","PosterBodoni BT","PRINCETOWN LET","Pristina","PTBarnum BT","Pythagoras","Raavi","Rage Italic","Ravie","Ribbon131 Bd BT","Rockwell","Rockwell Condensed","Rockwell Extra Bold","Rod","Roman","Sakkal Majalla","Santa Fe LET","Savoye LET","Sceptre","Script","Script MT Bold","SCRIPTINA","Serifa","Serifa BT","Serifa Th BT","ShelleyVolante BT","Sherwood","Shonar Bangla","Showcard Gothic","Shruti","Signboard","SILKSCREEN","SimHei","Simplified Arabic","Simplified Arabic Fixed","SimSun","SimSun-ExtB","Sinhala Sangam MN","Sketch Rockwell","Skia","Small Fonts","Snap ITC","Snell Roundhand","Socket","Souvenir Lt BT","Staccato222 BT","Steamer","Stencil","Storybook","Styllo","Subway","Swis721 BlkEx BT","Swiss911 XCm BT","Sylfaen","Synchro LET","System","Tamil Sangam MN","Technical","Teletype","Telugu Sangam MN","Tempus Sans ITC","Terminal","Thonburi","Traditional Arabic","Trajan","TRAJAN PRO","Tristan","Tubular","Tunga","Tw Cen MT","Tw Cen MT Condensed","Tw Cen MT Condensed Extra Bold","TypoUpright BT","Unicorn","Univers","Univers CE 55 Medium","Univers Condensed","Utsaah","Vagabond","Vani","Vijaya","Viner Hand ITC","VisualUI","Vivaldi","Vladimir Script","Vrinda","Westminster","WHITNEY","Wide Latin","ZapfEllipt BT","ZapfHumnst BT","ZapfHumnst Dm BT","Zapfino","Zurich BlkEx BT","Zurich Ex BT","ZWAdobeF"])),u=(u=u.concat(b.options.userDefinedFonts)).filter(function(t,e){return u.indexOf(t)===e});var t=document.getElementsByTagName("body")[0],n=document.createElement("div"),h=document.createElement("div"),i={},o={},f=function(){var t=document.createElement("span");return t.style.position="absolute",t.style.left="-9999px",t.style.fontSize="72px",t.style.fontStyle="normal",t.style.fontWeight="normal",t.style.letterSpacing="normal",t.style.lineBreak="auto",t.style.lineHeight="normal",t.style.texTransform="none",t.style.textAlign="left",t.style.textDecoration="none",t.style.textShadow="none",t.style.whiteSpace="normal",t.style.wordBreak="normal",t.style.wordSpacing="normal",t.innerHTML="mmmmmmmmmmlli",t},e=function(t){for(var e=!1,a=0;ae.name?1:t.name>>16,65535&t[0],t[1]>>>16,65535&t[1]],e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]];var a=[0,0,0,0];return a[3]+=t[3]+e[3],a[2]+=a[3]>>>16,a[3]&=65535,a[2]+=t[2]+e[2],a[1]+=a[2]>>>16,a[2]&=65535,a[1]+=t[1]+e[1],a[0]+=a[1]>>>16,a[1]&=65535,a[0]+=t[0]+e[0],a[0]&=65535,[a[0]<<16|a[1],a[2]<<16|a[3]]},x64Multiply:function(t,e){t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]],e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]];var a=[0,0,0,0];return a[3]+=t[3]*e[3],a[2]+=a[3]>>>16,a[3]&=65535,a[2]+=t[2]*e[3],a[1]+=a[2]>>>16,a[2]&=65535,a[2]+=t[3]*e[2],a[1]+=a[2]>>>16,a[2]&=65535,a[1]+=t[1]*e[3],a[0]+=a[1]>>>16,a[1]&=65535,a[1]+=t[2]*e[2],a[0]+=a[1]>>>16,a[1]&=65535,a[1]+=t[3]*e[1],a[0]+=a[1]>>>16,a[1]&=65535,a[0]+=t[0]*e[3]+t[1]*e[2]+t[2]*e[1]+t[3]*e[0],a[0]&=65535,[a[0]<<16|a[1],a[2]<<16|a[3]]},x64Rotl:function(t,e){return 32===(e%=64)?[t[1],t[0]]:e<32?[t[0]<>>32-e,t[1]<>>32-e]:(e-=32,[t[1]<>>32-e,t[0]<>>32-e])},x64LeftShift:function(t,e){return 0===(e%=64)?t:e<32?[t[0]<>>32-e,t[1]<>>1]),t=this.x64Multiply(t,[4283543511,3981806797]),t=this.x64Xor(t,[0,t[0]>>>1]),t=this.x64Multiply(t,[3301882366,444984403]),t=this.x64Xor(t,[0,t[0]>>>1])},x64hash128:function(t,e){e=e||0;for(var a=(t=t||"").length%16,i=t.length-a,n=[0,e],o=[0,e],r=[0,0],s=[0,0],l=[2277735313,289559509],d=[1291169091,658871167],c=0;c>>0).toString(16)).slice(-8)+("00000000"+(n[1]>>>0).toString(16)).slice(-8)+("00000000"+(o[0]>>>0).toString(16)).slice(-8)+("00000000"+(o[1]>>>0).toString(16)).slice(-8)}},e.VERSION="1.7.0",e}),void 0===helper)var helper={};helper.arr={multisort:function(t,a,i){if(void 0===a)for(a=[],x=0;xo?t(e,a,i,n,o+1):0:0==r?1:-1}(t,e,a,i,0)})}},function(n){n.fn.popupWindow=function(i){return this.each(function(){n.fn.popupWindow.defaultSettings={centerBrowser:0,centerScreen:0,height:500,left:0,location:0,menubar:0,resizable:0,scrollbars:0,status:0,width:500,windowName:null,windowURL:null,top:0,toolbar:0},settings=n.extend({},n.fn.popupWindow.defaultSettings,i||{});var t,e,a="height="+settings.height+",width="+settings.width+",toolbar="+settings.toolbar+",scrollbars="+settings.scrollbars+",status="+settings.status+",resizable="+settings.resizable+",location="+settings.location+",menuBar="+settings.menubar;return settings.windowName=settings.windowName||this.name,settings.windowURL=settings.windowURL||this.href,settings.centerBrowser?(e=n.browser.msie?(t=window.screenTop-120+((document.documentElement.clientHeight+120)/2-settings.height/2),window.screenLeft+((document.body.offsetWidth+20)/2-settings.width/2)):(t=window.screenY+(window.outerHeight/2-settings.height/2),window.screenX+(window.outerWidth/2-settings.width/2)),window.open(settings.windowURL,settings.windowName,a+",left="+e+",top="+t).focus()):settings.centerScreen?(t=(screen.height-settings.height)/2,e=(screen.width-settings.width)/2,window.open(settings.windowURL,settings.windowName,a+",left="+e+",top="+t).focus()):window.open(settings.windowURL,settings.windowName,a+",left="+settings.left+",top="+settings.top).focus(),!1})}}(jQuery),function(t,e){"function"==typeof define&&define.amd?define(["jquery"],e):e(t.jQuery)}(this,function(t){var e,n,d;!function(h){var o,r,f,p,g={},m={},v={},b={},a=Object.prototype.hasOwnProperty,i=[].slice,y=/\.js$/;function x(t,e){return a.call(t,e)}function s(t,e){var a,i,n,o,r,s,l,d,c,u,h,f=e&&e.split("/"),p=v.map,g=p&&p["*"]||{};if(t&&"."===t.charAt(0))if(e){for(f=f.slice(0,f.length-1),r=(t=t.split("/")).length-1,v.nodeIdCompat&&y.test(t[r])&&(t[r]=t[r].replace(y,"")),t=f.concat(t),c=0;c=t.numberOfImages?a:(this.isRetina()&&i.push("retina=1"),a=t.url+t.routes.image+"&_id="+e,n(t,a,i))},r=function(t,e){var a=t.url+t.routes.audio;return e&&(a+="/ogg"),n(t,a)},s=function(t,e){return 0<=e&&e{accessibilityAlt}','
{refreshAlt}
',i='
{refreshAlt}
'+(t.supportsAudio()?'
{accessibilityAlt}
':"")+"
",n={path:a||"",refreshTitle:e.refreshTitle,refreshAlt:e.refreshAlt,accessibilityTitle:e.accessibilityTitle,accessibilityAlt:e.accessibilityAlt,retinaExtra:t.isRetina()?"@2x":""},s(i,n)},accessibility:function(t,e){var a;return t.supportsAudio()?('
{accessibilityDescription}
',a={accessibilityDescription:e.accessibilityDescription,audioURL:t.audioUrl(),audioFieldName:t.audioFieldName()},s('
{accessibilityDescription}
',a)):""},images:function(t,e){for(var a,i,n="",o=0,r=t.numberOfImages();o',i={imageUrl:t.imageUrl(o),i:o},n+=s(a,i);return a='

{explanation}

{images}
',i={imageFieldName:t.imageFieldName(),explanation:e.explanation.replace(/ANSWER/,t.imageName()),images:n},s(a,i)},audioInput:function(t){var e;return'',e={audioFieldName:t.audioFieldName()},s('',e)},imageInput:function(t,e){var a;return'',a={imageFieldName:t.imageFieldName(),value:t.imageValue(e)},s('',a)},namespaceInput:function(t){var e,a=t.namespace();return a&&0!==a.length?('',e={fieldName:t.namespaceFieldName(),value:a},s('',e)):""}}}),d("visualcaptcha/language",[],function(){"use strict";return{accessibilityAlt:"Sound icon",accessibilityTitle:"Accessibility option: listen to a question and answer it!",accessibilityDescription:"Type below the answer to what you hear. Numbers or words:",explanation:"Click or touch the ANSWER",refreshAlt:"Refresh/reload icon",refreshTitle:"Refresh/reload: get new images and accessibility option!"}}),d("visualcaptcha.jquery",["jquery","visualcaptcha","visualcaptcha/templates","visualcaptcha/language"],function(l,n,d,e){"use strict";var a,o,r,s,c,u,h;a=function(t,e){l.get(t,e,"json")},o=function(){},r=function(t,e,a){var i;i=d.namespaceInput(a)+d.accessibility(a,t.language)+d.images(a,t.language)+d.buttons(a,t.language,t.imgPath),e.html(i)},s=function(t){var e,a=l(this).closest(".visualCaptcha"),i=a.find(".visualCaptcha-accessibility-wrapper"),n=a.find(".visualCaptcha-possibilities"),o=a.find(".visualCaptcha-explanation"),r=i.find("audio");i.hasClass("visualCaptcha-hide")?(n.toggleClass("visualCaptcha-hide"),o.toggleClass("visualCaptcha-hide"),n.find(".img").removeClass("visualCaptcha-selected"),o.find("input").val(""),e=d.audioInput(a.data("captcha")),l(e).insertBefore(r),i.toggleClass("visualCaptcha-hide"),r[0].load(),r[0].play()):(r[0].pause(),i.toggleClass("visualCaptcha-hide"),i.find("input").remove(),o.toggleClass("visualCaptcha-hide"),n.toggleClass("visualCaptcha-hide")),t.preventDefault()},c=function(t){var e,a,i,n=l(this),o=n.closest(".visualCaptcha"),r=o.find(".visualCaptcha-possibilities"),s=o.find(".visualCaptcha-explanation");(a=s.find("input"))&&(a.remove(),r.find("a").removeClass("visualCaptcha-selected")),n.addClass("visualCaptcha-selected"),e=n.find("img").data("index"),i=d.imageInput(o.data("captcha"),e),s.append(l(i)),t.preventDefault()},u=function(t){l(this).closest(".visualCaptcha").data("captcha").refresh(),t.preventDefault()},h=function(t){var e=t.find(".imageField"),a=t.find(".audioField"),i=!(!e.val()&&!a.val());return i?{valid:i,name:e.val()?e.attr("name"):a.attr("name"),value:e.val()?e.val():a.val()}:{valid:i}},l.fn.visualCaptcha=function(t){var i;return i=l.extend({imgPath:"/",language:e,captcha:{request:a}},t),this.addClass("visualCaptcha").on("click",".visualCaptcha-accessibility-button",s).on("click",".visualCaptcha-refresh-button",u).on("click",".visualCaptcha-possibilities a",c),this.each(function(){var t,e,a=l(this);e=l.extend(i.captcha,{_loading:o.bind(null,i,a),_loaded:r.bind(null,i,a)}),void 0!==a.data("namespace")&&(e.namespace=a.data("namespace")),(t=n(e)).getCaptchaData=h.bind(null,a),a.data("captcha",t)})}}),d("jquery",function(){return t}),n("visualcaptcha.jquery")}),function(n){"use strict";var o=function(t,e){this.$element=n(t),this.options=n.extend({},o.defaults,e)};o.defaults={transition_delay:300,refresh_speed:50,display_text:"none",use_percentage:!0,percent_format:function(t){return t+"%"},amount_format:function(t,e,a){return t+" / "+e},update:n.noop,done:n.noop,fail:n.noop},o.prototype.transition=function(){var r=this.$element,s=r.parent(),l=this.$back_text,d=this.$front_text,c=this.options,u=parseInt(r.attr("data-transitiongoal")),h=parseInt(r.attr("aria-valuemin"))||0,f=parseInt(r.attr("aria-valuemax"))||100,p=s.hasClass("vertical"),g=c.update&&"function"==typeof c.update?c.update:Progressbar.defaults.update,m=c.done&&"function"==typeof c.done?c.done:Progressbar.defaults.done,t=c.fail&&"function"==typeof c.fail?c.fail:Progressbar.defaults.fail;if(isNaN(u))t("data-transitiongoal not set");else{var e,v=Math.round(100*(u-h)/(f-h));if("center"===c.display_text&&!l&&!d)this.$back_text=l=n("").addClass("progressbar-back-text").prependTo(s),this.$front_text=d=n("").addClass("progressbar-front-text").prependTo(r),p?(e=s.css("height"),l.css({height:e,"line-height":e}),d.css({height:e,"line-height":e}),n(window).resize(function(){e=s.css("height"),l.css({height:e,"line-height":e}),d.css({height:e,"line-height":e})})):(e=s.css("width"),d.css({width:e}),n(window).resize(function(){e=s.css("width"),d.css({width:e})}));setTimeout(function(){var t,e,a,i,n;p?r.css("height",v+"%"):r.css("width",v+"%");var o=setInterval(function(){i=p?(a=r.height(),s.height()):(a=r.width(),s.width()),t=Math.round(100*a/i),e=Math.round(h+a/i*(f-h)),v<=t&&(t=v,e=u,m(r),clearInterval(o)),"none"!==c.display_text&&(n=c.use_percentage?c.percent_format(t):c.amount_format(e,f,h),"fill"===c.display_text?r.text(n):"center"===c.display_text&&(l.text(n),d.text(n))),r.attr("aria-valuenow",e),g(t,r)},c.refresh_speed)},c.transition_delay)}};var t=n.fn.yopprogressbar;n.fn.yopprogressbar=function(i){return this.each(function(){var t=n(this),e=t.data("bs.progressbar"),a="object"==typeof i&&i;e&&a&&n.extend(e.options,a),e||t.data("bs.progressbar",e=new o(this,a)),e.transition()})},n.fn.yopprogressbar.Constructor=o,n.fn.yopprogressbar.noConflict=function(){return n.fn.yopprogressbar=t,this}}(window.jQuery);var YOPPollReCaptchaElements=[],YOPPollOnLoadRecaptcha=function(){jQuery(".basic-yop-poll-container").each(function(){"2"===jQuery(this).attr("data-cap")&&(YOPPollReCaptchaElements[jQuery(this).attr("data-uid")]=grecaptcha.render("yop-poll-captcha-"+jQuery(this).attr("data-uid"),{sitekey:objectL10n.yopPollParams.apiParams.reCaptcha.siteKey,theme:"light"}))})};jQuery(document).ready(function(p){var t,n,a,o,r,s,l,d,c,u,h,f,g,e,m={accessibilityAlt:objectL10n.yopPollParams.captchaParams.accessibilityAlt,accessibilityTitle:objectL10n.yopPollParams.captchaParams.accessibilityTitle,accessibilityDescription:objectL10n.yopPollParams.captchaParams.accessibilityDescription,explanation:objectL10n.yopPollParams.captchaParams.explanation,refreshAlt:objectL10n.yopPollParams.captchaParams.refreshAlt,refreshTitle:objectL10n.yopPollParams.captchaParams.refreshTitle},v=[];YOPPollBasicGetPollCookieData=function(t){var e,a,i,n=localStorage.getItem("ypdata"),o="";if(null!==n)for(e=n.split("#"),i=0;i'+answerResultsPercentages.content+""),!0===answerResultsVotes.show&&"text"===i&&p(this).find(".basic-answer-content").append('"),0
')}),p(this).find(".progress .progress-bar").yopprogressbar()}})},s=function(t,e){var a,i=0;for(p(t).find('.basic-element[data-type!="question"]').hide(),p(t).find(".basic-answers").hide(),p(t).find(".basic-captcha").hide(),p(t).find(".basic-stats").hide(),p(t).find(".basic-vote-button").hide(),p(t).find(".basic-results-button").hide(),p(t).find(".basic-back-to-vote-button").show(),i=0;i',u=0;u
",!0===n.show&&(i+='"),!0===o.show&&(i+='"),i+="
",i+='
',i+="";i+="",p(t).find('.basic-question[data-id="'+e.id+'"]').append(i),p(t).find(".progress .progress-bar").yopprogressbar()}},l=function(t,e){var a=0;for(a=0;a'+i.replace("data-uid",'data-uid="'+a+'"')+"")}),p('.basic-yop-poll-container input[type="text"][data-type="other-answer"]').focus(function(){var t=p(this).closest(".basic-question").attr("data-id");p('.basic-yop-poll-container input[name="answer['+t+']"][value="0"]').prop("checked",!0),p('.basic-yop-poll-container input[name="answer['+t+']"][value="0"]').iCheck("check"),p('.basic-yop-poll-container input[name="answer['+t+']"]').iCheck("update")}),p('.basic-yop-poll-container input[type="text"][data-type="other-answer"]').blur(function(){""!==p(this).val().trim()&&p(this).parent(".basic-text").removeClass("has-error")}),p('.basic-yop-poll-container input[type="text"][data-type="cfield"]').blur(function(){""!==p(this).val().trim()&&p(this).parent(".basic-custom-field").removeClass("has-error")}),p('.basic-yop-poll-container .basic-answer input[type="radio"], .basic-yop-poll-container .basic-answer input[type="checkbox"]').on("ifChecked",function(t){"0"===t.currentTarget.defaultValue?p(this).closest(".basic-question").find('input[data-type="other-answer"]').focus():p(this).closest(".basic-question").find('input[data-type="other-answer"]').blur()}),u=function(t,e,a,i){var n,o,r=0,s=[];return p(t).find(".basic-element").each(function(){var t=p(this).attr("data-type"),e=p(this).attr("data-id"),a=[];switch(t){case"question":p(this).find('input[name="answer['+e+']"][value!="0"]:checked').each(function(){a.push({id:p(this).val(),data:!0})}),1===p(this).find('input[name="answer['+e+']"][value="0"]:checked').length&&a.push({id:0,data:p(this).find('input[name="other['+e+']"]').val()}),s[r]={id:e,type:"question",data:a},r++;break;case"custom-field":s[r]={id:e,type:"custom-field",data:p(this).find('input[name="cfield['+e+']"]').val()},r++}}),n="2"===p(t).attr("data-cap")?grecaptcha.getResponse(YOPPollReCaptchaElements[p(t).attr("data-uid")]):"",o="yes"===p(t).attr("data-gdpr")&&"consent"===p(t).attr("data-gdpr-sol")?p(t).find(".gdpr-consent").val():"",{pollId:p(t).attr("data-id"),pollUid:p(t).attr("data-uid"),imageCaptcha:p(t).find(".imageField").val(),audioCaptcha:p(t).find(".audioField").val(),reCaptcha:n,trackingId:p(t).attr("data-tid"),gdprConsent:o,data:s,user:{id:i.id,first_name:i.firstName,last_name:i.lastName,email:i.email,type:e,f_data:a}}},h=function(a,i,n){var t,e=p(a).attr("data-gdpr"),o=p(a).attr("data-gdpr-sol");return"no"===e||"yes"===e&&"consent"===o?(new Fingerprint2).get(function(t){var e=u(a,i,t,n);p.ajax({type:"POST",url:objectL10n.yopPollParams.urlParams.ajax,dataType:"json",data:{action:"yop_poll_record_vote",_token:p(a).find('input[name="_token"]').val(),data:JSON.stringify(e)}}).done(function(t){p(a).find(".basic-message").removeClass("show").addClass("hide"),p(a).find(".basic-overlay").addClass("hide"),p(a).find(".basic-gdpr").hide(),p(a).find(".basic-captcha").hide(),!0===t.success?(response=t.data,c(a),""!==response.total_votes&&p(a).find(".basic-stats-votes-number").text(response.total_votes),""!==response.total_answers&&p(a).find(".basic-stats-answers-number").text(response.total_answers),!0===response.rebuild&&l(a,JSON.parse(response.elements)),!0===response.show_results?(d(a,JSON.parse(response.results)),s(a,JSON.parse(response.results))):(p(a).find(".basic-message").addClass("basic-success").removeClass("hide"),p(a).find(".basic-message-text").text(objectL10n.yopPollParams.voteParams.thankYou),p("html, body").animate({scrollTop:p(p(a).closest(".bootstrap-yop")).offset().top},1500,"linear")),"yes"===response.redirect&&window.setTimeout(function(){window.location.href=response.redirect_to},1e3*response.redirect_after)):(p(a).find(".basic-message").addClass("basic-error").removeClass("hide"),p(a).find(".basic-gdpr").show(),p(a).find(".basic-captcha").show(),p(a).find(".basic-message-text").text(t.data),p("html, body").animate({scrollTop:p(p(a).closest(".bootstrap-yop")).offset().top},1500,"linear"))}).fail(function(t,e){})}):(t=u(a,i,"",n),p.ajax({type:"POST",url:objectL10n.yopPollParams.urlParams.ajax,dataType:"json",data:{action:"yop_poll_record_vote",_token:p(a).find('input[name="_token"]').val(),data:JSON.stringify(t)}}).done(function(t){p(a).find(".basic-message").removeClass("show").addClass("hide"),p(a).find(".basic-overlay").addClass("hide"),p(a).find(".basic-gdpr").hide(),p(a).find(".basic-captcha").hide(),!0===t.success?(response=t.data,c(a),""!==response.total_votes&&p(a).find(".basic-stats-votes-number").text(response.total_votes),""!==response.total_answers&&p(a).find(".basic-stats-answers-number").text(response.total_answers),!0===response.rebuild&&l(a,JSON.parse(response.elements)),!0===response.show_results?(d(a,JSON.parse(response.results)),s(a,JSON.parse(response.results))):(p(a).find(".basic-message").addClass("basic-success").removeClass("hide"),p(a).find(".basic-message-text").text(objectL10n.yopPollParams.voteParams.thankYou),p("html, body").animate({scrollTop:p(p(a).closest(".bootstrap-yop")).offset().top},1500,"linear")),"yes"===response.redirect&&window.setTimeout(function(){window.location.href=response.redirect_to},1e3*response.redirect_after)):(p(a).find(".basic-message").addClass("basic-error").removeClass("hide"),p(a).find(".basic-message-text").text(t.data),p("html, body").animate({scrollTop:p(p(a).closest(".bootstrap-yop")).offset().top},1500,"linear"))}).fail(function(t,e){})),1},f=function(e){var a=p(e).attr("data-id"),i=p(e).attr("data-uid"),n=[];p.ajax({type:"POST",url:objectL10n.yopPollParams.urlParams.ajax,dataType:"json",async:!1,data:{action:"yop_poll_is_user_logged_in"},success:function(t){!0===t.success?(n.id="",n.firstName="",n.lastName="",n.email="",h(e,"wordpress",n)):myWindow=p(".basic-vote").popupWindow({windowURL:objectL10n.yopPollParams.urlParams.wpLogin+encodeURIComponent("&poll_id="+a+"&puid="+i),windowName:"",height:500,location:1,menubar:1,resizable:0,scrollbars:1,status:0,width:450,toolbar:1,centerScreen:1})}})},p(".basic-yop-poll-container .basic-vote-button").click(function(t){var a,e,i,n,o,r,s=[],l=!1;if(a=p(this).closest(".basic-yop-poll-container"),e=p(a).attr("data-id"),i=p(a).attr("data-uid"),""!==e){if(n=p(a).attr("data-access").split(","),p(a).find(".basic-element").each(function(){var t=p(this).attr("data-type"),e=p(this).attr("data-id");switch(t){case"question":o=p(this).attr("data-min"),r=p(this).attr("data-max"),!1===l&&0===p(this).find('input[name="answer['+e+']"]:checked').length&&(p(a).find(".basic-message").find("p").text(objectL10n.yopPollParams.voteParams.noAnswersSelected),p(a).find(".basic-message").addClass("show basic-error"),p(a).find(".basic-overlay").addClass("hide"),l=!0,p("html, body").animate({scrollTop:p(p(a).closest(".bootstrap-yop")).offset().top},1500,"linear")),!1===l&&o>p(this).find('input[name="answer['+e+']"]:checked').length&&(p(a).find(".basic-message").find("p").text(objectL10n.yopPollParams.voteParams.minAnswersRequired.replace("{min_answers_allowed}",o)),p(a).find(".basic-message").addClass("show basic-error"),p(a).find(".basic-overlay").addClass("hide"),l=!0,p("html, body").animate({scrollTop:p(p(a).closest(".bootstrap-yop")).offset().top},1500,"linear")),!1===l&&r